package liurong.driver.thread;

public class RunableTest {

	public static void main(String[] args) {
		A a = new A();
		a.run();
		Thread thread = new Thread(a);
		thread.start();
		System.out.println(Thread.currentThread().getName());
	}

	static class A implements Runnable {
		@Override
		public void run() {
			try {
				System.out.println(Thread.currentThread().getName());
			} catch (Exception e) {
				// TODO: handle exception
			}
		}

	}
}
